﻿Public Class ImageTest

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim imageObj = Image.FromFile("D:\KOFAX\Clustering\1\1.tif")
        Dim imageObj2 = New Bitmap("D:\KOFAX\Clustering\1\1.tif")

        imageObj.Dispose()
        imageObj.Dispose()
        If (imageObj Is Nothing) Then
            MessageBox.Show("Nothing")
        End If
        imageObj = Nothing
    End Sub
End Class
